Skip to content

Replace rules_jvm_external with http_jar - #113

Merged
snape merged 1 commit into
mainfrom
dev/use-http-jar
Dec 4, 2026
Merged

snape merged 1 commit into
mainfrom
dev/use-http-jar

Conversation

@snape

@snape snape commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Replace rules_jvm_external with Bazel's built-in http_jar for org.apache.commons:commons-math3:3.6.1 and remove maven_install.json.

This eliminates the rules_jvm_external transitive Bzlmod dependency tree and unblocks upgrading rules_java to v10 (#111).

Signed-off-by: Jamie Snape <snape@me.com>
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Chores
    • Updated the project’s build configuration to retrieve and verify the Commons Math library directly.
    • Updated Java build targets to use the revised dependency reference. These changes affect build setup only; no end-user functionality changes are noted.

Bazel now fetches Commons Math 3.6.1 through a checksum-pinned http_jar repository instead of the Maven installation. The consuming targets use the new repository label, and the generated Maven manifest and license file are removed.

Changes: Commons Math dependency migration

Layer / File(s) Summary
Declare the direct jar repository
MODULE.bazel, maven_install.json, maven_install.json.license
MODULE.bazel defines a direct http_jar repository for Commons Math 3.6.1 with two download URLs and a SHA-256 checksum. The Maven setup and generated installation files are removed.
Update Commons Math consumers
blocks/src/main/java/BUILD.bazel, circle/src/main/java/BUILD.bazel, rvo/src/main/java/BUILD.bazel
The blocks and circle tests, rvo library, and api Javadoc target now depend on @commons_math3//jar.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • snape/RVO2-Java#104: Adds Maven Central fallback mirrors to the Maven installation configuration that this change replaces.
Merge Risk: Minimal · up to 86f8e

This change fetches Commons Math 3.6.1 directly instead of through the Maven rules and updates the targets that use it. No concrete merge-blocking risk was found, and the change is easy to revert.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: replacing rules_jvm_external with Bazel's built-in http_jar. The changeset removes maven_install.json and switches the commons-math3 dependency to an http_jar reposito…
Description check Passed The description states the change: replacing rules_jvm_external with http_jar for commons-math3 3.6.1 and removing maven_install.json. It also gives the reason, which is to remove the transitive Bzlmo…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: replacing rules_jvm_external with Bazel's built-in http_jar. The changeset removes maven_install.json and switches the commons-math3 dependency to an http_jar repository in MODULE.bazel, which matches the title.

Full details: Description check

Explanation

The description states the change: replacing rules_jvm_external with http_jar for commons-math3 3.6.1 and removing maven_install.json. It also gives the reason, which is to remove the transitive Bzlmod dependency tree and unblock a rules_java upgrade. This matches the summarized file changes.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 567bd2ed-74ac-46b4-a161-0640a4de273b
Commits

Reviewing files that changed from the base of the PR and between 63ae9e7 and 86f8eaa.

Files selected for processing: 6

  • MODULE.bazel
  • blocks/src/main/java/BUILD.bazel
  • circle/src/main/java/BUILD.bazel
  • maven_install.json
  • maven_install.json.license
  • rvo/src/main/java/BUILD.bazel
Files with no reviewable changes: 2

  • maven_install.json
  • maven_install.json.license

Included review availability: This review used your included allowance. 4 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

@snape
snape merged commit c831cdf into main Dec 4, 2026
37 checks passed
@snape
snape deleted the dev/use-http-jar branch December 4, 2026 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant